package cn.net.yato.picture.config;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Component
public class MyConfiguration implements WebMvcConfigurer {

	/**
     * 虚拟路径配置
     * @param registry
     */
	@Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
//		registry.addResourceHandler(CommParams.FILEPATH+"**").addResourceLocations("file:"+CommParams.USER_HEAD_FILE_UPLOADPATH);
//		WebMvcConfigurer.super.addResourceHandlers(registry);
	}
}